package com.zhuiyun.pm.client.home.service;

import com.zhuiyun.pm.client.order.entity.ClientOrder;
import com.zhuiyun.pm.page.PageRequest;
import com.zhuiyun.pm.result.CommonResult;

/**
 * @Description TODO 我的竞价
 * @ClassName MyBidService
 * @Author HH
 * @Date 2023/3/23 16:27
 **/
public interface MyBidService {

    /**
    * @Description 查询我的竞价
    * @Author HH
    * @Date 2023/3/24 10:00
    * @Return com.zhuiyun.pm.result.CommonResult
    * @param userId
    * @param pageRequest
    */
    CommonResult selectMyBidById(Integer userId, PageRequest pageRequest);

    /**
    * @Description 查询我的订单
    * @Author HH
    * @Date 2023/3/24 13:34
    * @Return com.zhuiyun.pm.result.CommonResult
    * @param bidder
    * @param pageRequest
    */
    CommonResult selectMyOrderById(Integer bidder, PageRequest pageRequest);

    /**
     * @Description 根据订单id修改订单状态
     * @Author HH
     * @Date 2023/3/24 16:05
     * @Return int
     * @param clientOrder
     */
    CommonResult updateMyOrderById(ClientOrder clientOrder);
}
